import numpy as np
import pandas as pd
import yaml


class FileUtils:
    @staticmethod
    def read_base():
        filename = './base.csv'
        data_frame = pd.read_csv(filename)
        data = data_frame.values
        data[:, 3:6] = data[:, 3:6] * np.pi / 180
        return data[:, :6], data[:, 6:]

    @staticmethod
    def read_workpiece() -> np.ndarray:
        filename = './workpiece.csv'
        data_frame = pd.read_csv(filename)
        return data_frame.values
